<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta http-equiv="content-type" content="text/html;charset=utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"/>
    <link rel="icon" href="${mvcPath}/res/images/bmcd_favicon.ico" type="image/x-icon" />
    <link rel="shortcut icon" href="${mvcPath}/res/images/bmcd_favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="${mvcPath}/res/lib/museUI/muse-ui.css">
    <title>
        <sitemesh:write property='title'/>
    </title>
</head>
<body>
<sitemesh:write property="body"/>
<script>
    var basepath="${mvcPath}";
    var currentUserId="${userInfo.userId}";
    var loginRight =${Session.rights} ;
    String.prototype.hashCode=function () {
        var  h = 0;
        if (h == 0 && this.length > 0) {
            for (var i = 0; i < this.length; i++) {
                h = 31 * h + this.charCodeAt(i);
            }
        }
        return h;
    }
    var allrights = {};
    allrights.init =false;
    var map = {};
    loginRight.forEach(function (data) {
        map[data.moduleCode] = data;
        if(data.moduleUrl){
            allrights[data.moduleUrl] = data;
        }
    });
    loginRight.forEach(function (data) {
        if(data.parentCode){
            if(map[data.parentCode]){
                var a =map[data.parentCode]
                if(!a.rights){
                    a.rights = [];
                    a.children = [];
                }
                a.rights.push(data.rightCode);
                a.children.push(data);
            }
        }
    });
    allrights.init = false;
</script>
<script src="${mvcPath}/lib/jquery/jquery.min.js"></script>
<script src="${mvcPath}/res/lib/sea.js" type="text/javascript"></script>
<script src="${mvcPath}/lib/vue/vue.min.js" type="text/javascript"></script>
<script src="${mvcPath}/res/lib/vue/vue-router.min.js" type="text/javascript"></script>

<script src="${mvcPath}/res/lib/museUI/muse-ui.js" type="text/javascript"></script>
<script src="${mvcPath}/lib/axios/axios.min.js" type="text/javascript"></script>
<sitemesh:write property="page.javascript"/>
</body>
</html>


